@extends('admin.layouts.default-layout')

@section('main-content')
<?php echo widget('Admin.Common')->crumbs('CrawlTask'); ?>
<div class="main-content">
  <div id="sys-list">
    <div class="row">
        <div class=" col-md-12">
            <div class="panel panel-default">
              <div class="table-responsive">
                <table class="table table-bordered table-striped">
                  <thead>
                    <tr>
                      <th class="hidden">ID</th>
                      <th>任务名</th>
                      <th>数据源</th>
                      <th>数据源类型</th>
                    </tr>
                  </thead>
                  <tbody>
                    <?php foreach($list as $key => $value): ?>
                      <tr>
                        <td class="hidden"><input type="checkbox" name="ids[]" class="ids" value="<?php echo $value['id']; ?>"> <?php echo $value['id']; ?></td>
                        <td><?php echo $value['name']; ?></td>
                        <td><?php echo $value['data_source']; ?></td>
                        <td><?php echo $value['type']; ?></td>
                      </tr>
                    <?php endforeach; ?>
                  </tbody>
                </table>
                </div>
            </div>
        </div>
    </div>
  <?php echo $page; ?>
  </div>
</div>
@stop
